<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>books</title>
</head>
<body>
    <h1>All books</h1>
    <ul>
        {% for name in names %}
            <li>
                <h2>{{name }}</h2>
            </li>
        {% endfor %}
    </ul>
</body>
</html>